package com.njcb.game.web.controller;

import com.njcb.ams.pojo.dto.standard.EntityResponse;
import com.njcb.ams.pojo.dto.standard.PageResponse;
import com.njcb.ams.util.AmsAssert;
import com.njcb.game.application.BusinessGameManager;
import com.njcb.game.pojo.GameResultDetail;
import com.njcb.game.pojo.RegisterInput;
import com.njcb.game.pojo.RegisterOutput;
import com.njcb.game.repository.dao.GameRegisterDAO;
import com.njcb.game.repository.dao.GameResultDAO;
import com.njcb.game.repository.entity.GameRegister;
import com.njcb.game.repository.entity.GameResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import java.util.ArrayList;
import java.util.List;

/**
 * 用户操作类
 *
 * @author LOONG
 */
@RestController
@RequestMapping("/resource")
public class TemplateController {

    @ApiOperation(value = "报表信息", notes = "报表信息")
    @RequestMapping(value = "/report")
    @ResponseBody
    public ModelAndView report() {
        ModelAndView modelAndView = new ModelAndView("report.ftl");
        modelAndView.addObject("loginName", "loginName");
        modelAndView.addObject("userName", "loginName");
        modelAndView.addObject("empNo", "loginName");
        modelAndView.addObject("mobileNo", "loginName");
        modelAndView.addObject("roleCode", "loginName");
        return modelAndView;
    }

}
